﻿@{
    string userName = "";
    if (Session["userName"] != null)
    {
        userName = Session["userName"].ToString();
    }
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>爱农人生意参谋</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap-->
    <link rel="stylesheet" href="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/bootstrap/dist/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/font-awesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/Ionicons/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="~/Content/js/plugs/AdminLTE-2.4.2/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="~/Content/js/plugs/AdminLTE-2.4.2/dist/css/skins/_all-skins.min.css">


    <!-- jquery -->
    <script src="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- adminlte -->
    <script src="~/Content/js/plugs/AdminLTE-2.4.2/dist/js/adminlte.min.js"></script>
    <!-- FastClick -->
    <script src="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/fastclick/lib/fastclick.js"></script>
    <!--dashboard-->
    @*<script src="~/Content/js/plugs/AdminLTE-2.4.2/dist/js/pages/dashboard.js"></script>
    <script src="~/Content/js/plugs/AdminLTE-2.4.2/dist/js/pages/dashboard2.js"></script>*@
    <!--slimscroll-->
    <script src="~/Content/js/plugs/AdminLTE-2.4.2/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
    <!-- Chart -->
    <script src="~/Content/js/plugs/echarts-2.2.7/echarts-all.js"></script>
    <script src="~/Content/js/baseEchartOption.js"></script>


    <script type="text/javascript">
        $(function () {
            $(".main-sidebar ul li.treeview a").click(function (i, item) {
                var temp=  $(this).parent().find(".treeview-menu");
                if (temp.is(":visible")) {
                    temp.hide();
                } else {
                    temp.show();
                }
            });
        })
        function logout() {
            $.post("/Login/Logout", function () {
                window.location.href = "/Login/LoginPage";
            })
        }
    </script>

</head>

<body>
    <div class="wrapper skin-blue">

        <header class="main-header">
            <!-- Logo -->
            <!-- Logo -->
            <a href="../index2.html" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini">生意参谋</span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg">生意参谋</span>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">切换导航</span>
                </a>
                <!-- Navbar Right Menu -->
                @if (!string.IsNullOrEmpty(userName)) { 
                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <li><a href="#">用户名：@userName</a></li>
                        <li><a href="javascript:void(0);" onclick="logout()">退出</a></li>
                    </ul>
                </div>
                }
            </nav>
        </header>

        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto; height: 295px;">
                <div class="sidebar" id="scrollspy" style="height: 295px; overflow: hidden; width: auto;">

                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="nav sidebar-menu">
                        <li class="header">条目列表</li>
                        <li class=""><a href="#introduction"><i class="fa fa-circle-o"></i> 经营概况</a></li>
                        <li><a href="#download"><i class="fa fa-circle-o"></i> 订单数据 </a></li>
                        <li><a href="#dependencies"><i class="fa fa-circle-o"></i>退货统计</a></li>
                        <li><a href="#dependencies"><i class="fa fa-circle-o"></i>商品排行</a></li>
                  
                        <li><a href="#advice"><i class="fa fa-circle-o"></i>客户忠诚度</a></li>
                        <li><a href="#layout"><i class="fa fa-circle-o"></i>销售分析</a></li>
                        <li><a href="#adminlte-options"><i class="fa fa-circle-o"></i>买家分析</a></li>
                        <li><a href="#adminlte-options"><i class="fa fa-circle-o"></i>区域分析</a></li>

                        <li class="treeview">
                            <a href="javascript:void(0)"><i class="fa fa-circle-o"></i>数据导出</a>
                            <ul class="nav treeview-menu" style="display: none;">
                                <li><a href="#component-main-header">订单明细</a></li>
                                <li><a href="#component-sidebar">对账明细</a></li>
                            </ul>
                        </li>

                        <li><a href="#plugins"><i class="fa fa-circle-o"></i>会员分析</a></li>
                        <li><a href="#upgrade"><i class="fa fa-circle-o"></i> 业务员统计</a></li>
                    </ul>
                </div><div class="slimScrollBar" style="background: rgba(0, 0, 0, 0.2); width: 3px; position: absolute; top: 0px; opacity: 0.4; display: block; border-radius: 7px; z-index: 99; right: 1px; height: 140.59px;"></div><div class="slimScrollRail" style="width: 3px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; background: rgb(51, 51, 51); opacity: 0.2; z-index: 90; right: 1px;"></div>
            </div>
            <!-- /.sidebar -->
        </aside>

        <div class="content-wrapper">
            <div class="content body">
                @RenderBody()
            </div>
        </div>

    </div>
</body>
</html>



